package com.project.fiveCerealsSavoury.transfer;

public class AddressSetTem {
	private Integer id;
	/**
	 * 省
	 */
	private String province;
	/**
	 * 市
	 */
	private String city;
	/**
	 * 县
	 */
	private String area;
	/**
	 * 镇
	 */
	private String town;
	private String newUserPhone;
	private String newNickName;
	private String newDetailedAddress;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getTown() {
		return town;
	}
	public void setTown(String town) {
		this.town = town;
	}
	public String getNewUserPhone() {
		return newUserPhone;
	}
	public void setNewUserPhone(String newUserPhone) {
		this.newUserPhone = newUserPhone;
	}
	public String getNewNickName() {
		return newNickName;
	}
	public void setNewNickName(String newNickName) {
		this.newNickName = newNickName;
	}
	public String getNewDetailedAddress() {
		return newDetailedAddress;
	}
	public void setNewDetailedAddress(String newDetailedAddress) {
		this.newDetailedAddress = newDetailedAddress;
	}
	@Override
	public String toString() {
		return "AddressSetTem [id=" + id + ", province=" + province + ", city=" + city + ", area=" + area + ", town="
				+ town + ", newUserPhone=" + newUserPhone + ", newNickName=" + newNickName + ", newDetailedAddress="
				+ newDetailedAddress + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((area == null) ? 0 : area.hashCode());
		result = prime * result + ((city == null) ? 0 : city.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((newDetailedAddress == null) ? 0 : newDetailedAddress.hashCode());
		result = prime * result + ((newNickName == null) ? 0 : newNickName.hashCode());
		result = prime * result + ((newUserPhone == null) ? 0 : newUserPhone.hashCode());
		result = prime * result + ((province == null) ? 0 : province.hashCode());
		result = prime * result + ((town == null) ? 0 : town.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AddressSetTem other = (AddressSetTem) obj;
		if (area == null) {
			if (other.area != null)
				return false;
		} else if (!area.equals(other.area))
			return false;
		if (city == null) {
			if (other.city != null)
				return false;
		} else if (!city.equals(other.city))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (newDetailedAddress == null) {
			if (other.newDetailedAddress != null)
				return false;
		} else if (!newDetailedAddress.equals(other.newDetailedAddress))
			return false;
		if (newNickName == null) {
			if (other.newNickName != null)
				return false;
		} else if (!newNickName.equals(other.newNickName))
			return false;
		if (newUserPhone == null) {
			if (other.newUserPhone != null)
				return false;
		} else if (!newUserPhone.equals(other.newUserPhone))
			return false;
		if (province == null) {
			if (other.province != null)
				return false;
		} else if (!province.equals(other.province))
			return false;
		if (town == null) {
			if (other.town != null)
				return false;
		} else if (!town.equals(other.town))
			return false;
		return true;
	}
	
}
